runtime.activeSweep.state (field)
11 uses
runtime (current package)
mgc.go#L182: sweep.active.state.Store(sweepDrainedMask)
mgcsweep.go#L136: state atomic.Uint32
mgcsweep.go#L151: state := a.state.Load()
mgcsweep.go#L155: if a.state.CompareAndSwap(state, state+1) {
mgcsweep.go#L168: state := a.state.Load()
mgcsweep.go#L172: if a.state.CompareAndSwap(state, state-1) {
mgcsweep.go#L193: state := a.state.Load()
mgcsweep.go#L197: if a.state.CompareAndSwap(state, state|sweepDrainedMask) {
mgcsweep.go#L205: return a.state.Load() &^ sweepDrainedMask
mgcsweep.go#L212: return a.state.Load() == sweepDrainedMask
mgcsweep.go#L220: a.state.Store(0)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |